package com.atguigu.jxc.dao;
import com.atguigu.jxc.entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * -
 *
 * @author 周沫
 * @Date 2020-12-30
 * @Time 14:59
 */
public interface CustomerReturnListGoodsDao {

	Integer saveCustomerReturnList(@Param("customerReturnList") CustomerReturnList customerReturnList);

	Integer saveCustomerReturnListGoods(@Param("customerReturnListGoods") CustomerReturnListGoods customerReturnListGoods);

	List<CustomerReturnList> selectCustomerReturnList(@Param("returnNumber") String returnNumber, @Param("customerId") Integer customerId,
	                                                  @Param("state") Integer state, @Param("sTime") String sTime, @Param("eTime") String eTime);


	List<CustomerReturnListGoods> goodsList(@Param("customer_return_list_goods_id") Integer customerReturnListId);

	Integer delete(@Param("customer_return_list_id") Integer customerReturnListId);

	Integer updateState(@Param("customerReturnListId") Integer customerReturnListId);

	List<SaleCount> count(@Param("sTime") String sTime, @Param("eTime") String eTime,
	                      @Param("goodsTypeId") Integer goodsTypeId, @Param("codeOrName") String codeOrName);

}